package com.sq.activity.domain;

import java.util.Date;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.sq.common.annotation.Excel;
import com.sq.common.core.domain.BaseEntity;

/**
 * 活动报名对象 activity_registration
 * 
 * @author shan
 * @date 2025-02-12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("活动报名实体")
public class ActivityRegistration extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
    * 报名ID（主键，自增）
    */
    @ApiModelProperty(value = "主键ID")
    private Long id;

    /**
    * 活动ID，外键指向 activity 表
    */
    @ApiModelProperty(value = "${comment}")
    private Long activityId;

    /**
    * 活动标题
    */
    @Excel(name = "活动标题")
    @ApiModelProperty(value = "活动标题")
    private String activityTitle;

    /**
    * 用户ID，外键指向 sys_user 表
    */
    @ApiModelProperty(value = "活动标题")
    private Long sysUserId;

    /**
    * 用户昵称
    */
    @Excel(name = "用户昵称")
    @ApiModelProperty(value = "用户昵称")
    private String sysUserNickName;

    /**
    * 报名时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "报名时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "报名时间")
    private LocalDateTime regTime;

    /**
    * 修改时间
    */
    @ApiModelProperty(value = "报名时间")
    private Date upateTime;

}
